<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>选择课程</title>
</head>
<body>
<center>
    <form method="post" th:action="@{/StudentInfo/submitCourse}" >
        <h1>欢迎你<span th:text="${username}"/></h1>
        <center><h1>学生选课界面</h1></center>
        <!--遍历课程列表-->

        <div th:each="course:${courses}">
            <input name="checkCourses" type="checkbox" th:value="${course.name}"/><span th:text="${course.name}"></span><br>
        </div>
        <button>提交选课</button>
    </form>
</center>
</body>
</html>